Skip to content

Conversation

HannesWell
Copy link
Member

We have more and more GH workflows in this repository that are shared with other repos.
While this is good from a unification POV, it becomes more and more difficult to distinguish which workflow is a shared one and which workflow is just used in this repository.

Therefore this PR proposes to move all shared workflows into a sub-folder named shared, in in order to helps to distinguish workflows shared with and called from other repositories and workflows only used in this repository.

If we have consensus on this change I can create corresponding PRs to adapt all calling projects in the SDK.
This would also be a good opportunity to rename workflows if we think there current name does not fit.

This helps to distinguish workflows shared with and called from other
repositories and workflows only used in this repository.
@HeikoKlare
Copy link
Contributor

This is a good idea! For me, it would also help to give more structure to the shared workflows, i.e., to better separate them by purpose. So would it make sense to take the chance and also give the shared workflows more structure (e.g., by placing them in further subfolders)? Would probably be a good point in time since we need to touch consumers anway.

One proposal (without thinking much about it, so feel free to propose something else):

  • prerequisites containing the freeze period verification, merge commit checks etc.
  • updates containing the target and release update workflows
  • verification containing the build and test publish worklows

@laeubi
Copy link
Contributor

laeubi commented Apr 29, 2025

https://docs.github.com/en/actions/sharing-automations/reusing-workflows says:

As with other workflow files, you locate reusable workflows in the .github/workflows directory of a repository. Subdirectories of the workflows directory are not supported.

See also

If anything is unclear we have:

https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/blob/master/.github/workflows/README.MD

that hopefully explains the what and how and can be structured of course.

I can create corresponding PRs to adapt all calling projects in the SDK

Please keep in mind that they are used elsewhere (e.g. Tycho, m2e, jdt.ls...) so renaming them can have an undesirable impact on an unknown number of projects maybe.

@akurtakov
Copy link
Member

This one has many conflicts. Please rebase it.

Copy link
Contributor

@danthe1st danthe1st Aug 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are already moving the file, would it be a good idea to fix a typo in the same PR? Specifically, the message should probably be "Please always use rebase to update your branch" instead of "Please always use reabase to update your branch". Alternatively, this could be done in another PR before rebasing.

core.setFailed('Please always use reabase to update your branch')

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danthe1st please suggest a PR to fix the typo this is can be fixed beforehands already.

Copy link
Contributor

@danthe1st danthe1st Aug 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created #3239

@danthe1st
Copy link
Contributor

This PR seems to move all workflows mentioned in .github/workflows/README.MD into .github/shared so I suggest moving the README.MD as well (after all, that file is documenting the shared workflows).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants